Skip to content

Fuzzer generates values even when class is private #1635 #1638

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

Markoutte
Copy link
Collaborator

Description

Fixes an issue when some declared type is private, but has public constructor, fields or setter/getter. Fuzzer cannot create such values without reflections therefore it is prohibited to produce them.

Fixes #1635

Type of Change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

Regression and integration tests

Added new test fuzzing should not generate values of private classes into JavaFuzzingTest.kt

Manual Scenario

Try to reproduce issue's scenario. It should not create any test.

Checklist (remove irrelevant options):

  • The change followed the style guidelines of the UTBot project
  • Self-review of the code is passed
  • The change contains enough commentaries, particularly in hard-to-understand areas
  • New documentation is provided or existed one is altered
  • No new warnings
  • New tests have been added
  • All tests pass locally with my changes

@Markoutte Markoutte merged commit c1c10ff into main Jan 9, 2023
@Markoutte Markoutte deleted the pelevin/1635_Fuzzer_generates_values_even_when_class_is_private branch January 9, 2023 11:05
@alisevych alisevych added the ctg-bug-fix PR is fixing a bug label Jan 13, 2023
@alisevych alisevych added this to the 2023.03 Release milestone Mar 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp-fuzzing Issue is related to the fuzzing ctg-bug-fix PR is fixing a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fuzzer generates values even when class is private
3 participants